sort file name with C#

52

sort file name with C# -

string[] files = Directory.GetFiles(path).OrderBy(f => int.Parse(Path.GetFileNameWithoutExtension(f))).ToArray();

Comments

Submit
0 Comments